package cn.kgc.Adjudicative.mapper;

import cn.kgc.Adjudicative.entity.DPermission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;
import java.util.Set;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author sun
 * @since 2023-01-05
 */
public interface DPermissionMapper extends BaseMapper<DPermission> {
    Set<String> selectAllPermissionCodeByUsername(String username);

    List<DPermission> selectFatherPermissionByUsername(String username);

    List<DPermission> selectSubPermissionByFatherId(int fatherId);
}
